home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Executing DOS command from C
- Date: Sat, 13 Jan 96 14:43:44 GMT
- Organization: none
- Message-ID: <821544224snz@genesis.demon.co.uk>
- References: <4d28di$b7g@globe.indirect.com> <4d2gt1$kie@cisun2000.unil.ch>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4d2gt1$kie@cisun2000.unil.ch>
- FDUFRESN@hec.unil.ch "Francois Dufresne" writes:
-
- > Include: <process.h>, <stdlib.h>, <errno.h>
- >
- > Syntax: int system( char *command );
-
- As far as the C language is concerned you only need to include stdlib.h (since
- system returns an int you could get away with not even including this, but
- it is not recommended). process.h is not a standard C header file. errno.h
- would be necessary if you wanted to examine errno. However the C language
- doesn't define system() as setting errno (however this means that a
- particular implementation is allowed to).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-